﻿using EShop.Core.Model.Store;
using System.Data.Entity.ModelConfiguration;

namespace EShop.Data.Mapping.Store
{
    public class OrderMap:EntityTypeConfiguration<Order>
    {
        public OrderMap()
        {
            this.ToTable("order");
            this.HasKey(a => a.Id);
            this.Property(a => a.OrderNum).IsRequired();
            this.Property(a => a.Userid).IsRequired();
        }
    }
}
